package cn.wolfcode.service;

import cn.wolfcode.domain.MessageBoard;
import cn.wolfcode.domain.MessageReply;
import cn.wolfcode.qo.MessageBoardQueryObject;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IMessageBoardService {

    void insert(MessageBoard messageBoard) ;

    void delete(Long id) ;

    void update(MessageBoard messageBoard) ;

    MessageBoard selectById(Long id) ;

    List<MessageBoard> selectAll();

    PageInfo<MessageBoard> query(MessageBoardQueryObject qo);

    List<MessageReply> selectByReplay(Long id);

    int selectCount(Long id);
}
